package com.ethink.order.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ethink.order.api.info.GroupMateDetailInfo;
import com.ethink.order.common.entity.GroupMateDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 组套商品明细表 Mapper接口
 *
 * @author default
 * @date 2023-02-22
 */
@Mapper
public interface GroupMateDetailMapper extends BaseMapper<GroupMateDetail> {

    /**
     * 列表查询
     *
     * @param groupMateId
     * @return
     */
    List<GroupMateDetailInfo> listGroupMateDetail(@Param("groupMateId") Long groupMateId);

    /**
     * 查询明细
     *
     * @param groupMateId
     * @return
     */
    List<GroupMateDetailInfo> listByGroupMateId(@Param("groupMateId") Long groupMateId);

}